<?php
namespace zake\foundation\able;

use zake\foundation\able\reactor\ListenAble;
use zake\foundation\reactor\Event;

interface HandlerAble
{
    /**
     * 接收一个链接
     *
     * @author liu.bin 2020-04-18 00:02
     * @param ListenAble $stream
     */
    public function onAcceptHandle(Event $event);


    public function onConnectHandle(Event $event);


    public function onReadHandle(Event $event);


    public function onWriteHandle(Event $event);


    public function onCloseHandle(Event $event);
}
